package com.cdie.myschool.controller;

import com.cdie.myschool.mapper.CalendarMapper;
import com.cdie.myschool.service.EnjoyRunningInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("data")
public class EnjoyRunningInfoController {
    //查询学期表的id
    @Autowired
    private CalendarMapper calendarMapper;

    @Autowired
    private EnjoyRunningInfoService enjoyRunningInfoService;

    @GetMapping("import")
    public void dataImport(){
        enjoyRunningInfoService.importData();
    }
}
